package com.yst.webplugin.annotation;

import java.lang.annotation.*;

/**
 * declare result type
 */
@Target({ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ResultType {
    /**
     * can result types
     * @return
     */
    Class<?>[] resultTypes() default {};

    /**
     * use result class
     * @return true only return model class ,false resultTypes[]
     */
    boolean returnModelClass() default false;
}
